using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Api.Demain.Entities
{
    /// <summary>
    /// 权限表
    /// </summary>
    [Table("Permission")]
    public class Permission : BaseEntity
    {
        /// <summary>
        /// 权限名称
        /// </summary>
        [StringLength(100)]
        public string? PermissionName { get; set; }

        /// <summary>
        /// 权限URL
        /// </summary>
        [StringLength(100)]
        public string? PermissionUrl { get; set; }

        /// <summary>
        /// 权限序号
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 父级编号
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool State { get; set; } = false;
    }
} 